home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
et
/
et3_0-a1.lha
/
et3
/
src
/
DialogView.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-02
|
1KB
|
48 lines
#ifndef DialogView_First
#ifdef __GNUG__
//pragma once
#pragma interface
#endif
#define DialogView_First
#include "View.h"
//---- DialogView --------------------------------------------------------------
class DialogView: public View {
protected:
VObject *dialogRoot;
public:
MetaDef(DialogView);
DialogView(EvtHandler *eh= 0);
~DialogView();
void Open(bool mode= TRUE);
void SetOrigin(Point at);
void SetExtent(Point e);
void ExtentChanged(VObject *vop);
Metric GetMinSize();
virtual VObject *DoCreateDialog();
void CalcLayout(bool redraw= TRUE);
VObject *SetDialog(VObject*, bool redraw= TRUE); // returns old dialogtree
VObject *GetDialogRoot();
void Draw(Rectangle);
VObject *Detect(BoolFun f, void *arg);
//---- event handling
Command *DispatchEvents(Point lp, Token &t, Clipper*);
virtual void EnableItem(int id, bool b= TRUE);
void DisableItem(int id)
{ EnableItem(id, FALSE); }
VObject *FindItem(int id);
//---- keyboard focus
void CollectParts(class Collection *);
};
#endif